//引入初始化的样式文件
import '@/styles/common.scss'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'
import { componentPlugin } from './components'
//引入
import { lazyPlugin } from '@/directives/index'
const app = createApp(App)
const pinia = createPinia()
// 注册持久化插件

app.use(pinia)
pinia.use(piniaPluginPersistedstate)
app.use(router)
//懒加载指令插件并注册
app.use(lazyPlugin)
//引入全局组件插件
app.use(componentPlugin)


app.mount('#app')

